Skip to content

use OCI_CLI_PROFILE for session authenticate profile name#1092

Open
scratchmex wants to merge 1 commit into
oracle:masterfrom
scratchmex:issue-1091--honor-profile-env-var
Open

use OCI_CLI_PROFILE for session authenticate profile name#1092
scratchmex wants to merge 1 commit into
oracle:masterfrom
scratchmex:issue-1091--honor-profile-env-var

Conversation

@scratchmex
Copy link
Copy Markdown
Member

@scratchmex scratchmex commented Jun 3, 2026

fixes #1091

tests

$ python -m venv .venv
$ source .venv/bin/activate
$ pip install -e .
$ export OCI_CLI_PROFILE=oc1.ssh
$ python src/oci_cli/cli.py session authenticate --region us-ashburn-1
...
    Completed browser authentication process!
Config written to: /Users/ivang/.oci/config

    Try out your newly created session credentials with the following example command:

    oci iam region list --config-file /Users/ivang/.oci/config --profile oc1.ssh --auth security_token

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

honor OCI_CLI_PROFILE in oci session authenticate

1 participant